package org.yzl.designPatterns.visitor.impl;

import org.yzl.designPatterns.visitor.ISubject;
import org.yzl.designPatterns.visitor.IVisitor;

public class VisitorImpl implements IVisitor {
    @Override
    public void visitor(ISubject iSubject) {
        System.out.println("This is "+iSubject.getSubject());
    }
}
